<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


/* 
 
 */
require("db_conn.php");//包含连接文件
require("function.php");

//获取新闻具体内容

$sql="select a.*,b.* from tb_pr a,tb_prtype b  where a.typeid=b.id ";    //写新闻查询语句  
$onrs=$db->query($sql); //执行语句  $rs是一个结果集
$on=$onrs->fetch_array(MYSQLI_BOTH);   // 取一条 
require 'pro_details_html.php';

//释放结果集

$onrs->free();

//关闭数据库

$db->close();